package com.cloudcc.boot.service;

/**
 * @author T.han
 * @date 2023/10/30 9:45
 * @project CloudccNewPro
 * @Description //TODO
 */
public class wxClass {
    public static void main(String[] args) {
        String bm = "KH10000";
        int len = bm.length();
        System.out.println("len = " + len);
        int regBm = Integer.valueOf(bm.substring(2, len));
        int bmNew = regBm + 1;
        System.out.println("regBm = " + regBm + "   bmNew= " + bmNew);
        //1为int 类型、0代表前面要补位的字符、2代表字符串的长度、d表示参数为整数类型
        String bwNo = String.format("%04d", bmNew);
        System.out.println("bwNo = " + bwNo);
    }


}
